import util from './util.js'

/**
 * ibms 不带前缀接口地址
 */
const ibmsBaseUrl = 'https://ibms.on-bright.com:8000'  
// const ibmsBaseUrl = 'http://192.168.1.112:8098'  

/**
 * 物业系统单独接口
 * @param {*} url 
 * @param {*} methods 
 */
const tenementApi = (url , methods) =>{
	const baseUrl = 'http://192.168.1.118:8098/'
	return new Promise((resolve, reject) => {
	        uni.request({
	            url:`${baseUrl}${url}`,
	            method:methods,
	            success: res => {
	                resolve(res.data);
	            },
	            fail: err => {
	                reject(err);
	            }
	        });
	    });
	// let resData = {} 
	// uni.request({
	// 	url:`${baseUrl}${url}`,
	// 	method:methods,
	// 	success(res) {
	// 		resData = res
	// 	}
	// })
	// console.log(resData)
}


/**
 * 预约列表查询
 */
const piLookingRoom_getPiLookingRoomList = (params = {}) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "look_id, apply_no, apply_user, apply_date, company_name, contact_phone, start_time, lease_purpose, property_remark, accepted_date, accept_result, accept_starttime,accept_time , jd_status,  pi_looking_property_dets{property_detid, property_id, property_code, building, storey, real_area, floor_area, pricing_amount, property_image, tag_name}"
		let query = util.formatGraphqlQuery([{
			fun: "unDoneLookingRoomList:piLookingRoom_getPiLookingRoomList",
			params: {
				spStatus: "UNDONE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}, {
			fun: "completeLookingRoomList:piLookingRoom_getPiLookingRoomList",
			params: {
				spStatus: "COMPLETE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res)
		})
	})
}

//获取轮播图接口
const getPictureSwiper = ()=>{
	return util.request('/slideshow/querySlideshow')
	// uni.request({
	// 	url:config.BASE_URL+'/slideshow/querySlideshow',
		
	// })
}

/**
 * 预约列表查询
 */
const piLookingRoom_getPiLookingRoomSingle = ({ look_id }) => {
	return new Promise((resolve) => {
		let result = "look_id, apply_no, apply_user, apply_date, company_name, contact_phone, start_time, lease_purpose, property_remark, accepted_date, accept_result, accept_starttime, jd_status,  pi_looking_property_dets{look_id,real_area,property_detid, property_id, property_code, building, storey, floor_area, pricing_amount, property_image, tag_name}"
		let query = util.formatGraphqlQuery([{
			fun: "info:piLookingRoom_getPiLookingRoomSingle",
			params: {
				look_id: look_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res.info)
		})
	})
}

/**
 * 公司信息查询
 */
const mySelf_getMyCompany = (start = 0, limit = 20) => {
	return new Promise((resolve) => {
		let result = "customer_id,company_name,company_social_code,registered_capital,industry,customer_type,customer_profile,customer_user,customer_phone,address,company_website,email,unit_fax,urgent_contact,urgent_contact_phone,bank,bank_name,bank_account,invoice_type,invoice_name,invoice_phone,invoice_address"
		let query = util.formatGraphqlQuery([{
			fun: "companyInfo:mySelf_getMyCompany",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res.companyInfo)
		})
	})
}

/**
 * 报修列表查询
 */
const pmServiceRepair_getPmServiceRepairList = (params = {}) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "repair_id, apply_no, apply_date, apply_company_name, apply_user, apply_phone,property_id, property_code, buliding_no, storey_no, repair_Address, repair_content, repair_image, urgency, apply_remark, receiver, receiver_id, receive_time, dispatcher, dispatcher_id, dispatch_time, plan_date, repair_type_name, repair_type_nameone, repair_type_nametwo, repair_type_idtwo, finish_time, work_time, repair_money, payer, record_image, record_remark, record_user_name, record_dept_name, record_date, jd_status, materials{material_name, unit, price, num, total} "
		let query = util.formatGraphqlQuery([{
			fun: "unDoneServiceRepairList:pmServiceRepair_getPmServiceRepairList",
			params: {
				spStatus: "UNDONE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}, {
			fun: "completeServiceRepairList:pmServiceRepair_getPmServiceRepairList",
			params: {
				spStatus: "COMPLETE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

/**
 * 报事报修查询
 */
const pmServiceRepair_getPmServiceRepairSingle = (repair_id) => {
	return new Promise((resolve) => {
		let result = "repair_id, apply_no, apply_date, apply_company_name, apply_user, apply_phone,property_id, property_code, buliding_no, storey_no, repair_Address, repair_content, repair_image, urgency, apply_remark, receiver, receiver_id, receive_time, dispatcher, dispatcher_id, dispatch_time, plan_date, repair_type_name, repair_type_nameone, repair_type_nametwo, repair_type_idtwo, finish_time, work_time, repair_money, payer, record_image, record_remark, record_user_name, record_dept_name, record_date, jd_status, materials{material_name, unit, price, num, total} "
		let query = util.formatGraphqlQuery([{
			fun: "task:pmServiceRepair_getPmServiceRepairSingle",
			params: {
				repair_id: repair_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

/**
 * 物业列表查询
 */
const pmServiceRepair_getMyAssetsProperty = () => {
	return new Promise((resolve) => {
		let result = " property_id, property_code, property_image, building, storey"
		let query = util.formatGraphqlQuery([{
			fun: "assetsPropertyList:pmServiceRepair_getMyAssetsProperty",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.assetsPropertyList)
		})
	})
}
// 设备巡查任务信息
const baseData_getPdInspecelTask = (inspece_id) => {
	return new Promise((resolve)=>{
		let result = "inspece_id, inspece_no, plan_start_time, plan_partorls_time, plan_end_time, target_id, standard_id, standard_code, standard_name, device_id, device_code, device_no, device_name, is_emphasis, dispatcher, dispatcher_id, dispatch_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, receiver_remark, is_timeout, finish_time, patrol_result, abnormal_content, patrol_image, patrol_remark, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{inspece_det_id, inspece_id, inspece_no, inspece_content, standard_num, min_num, max_num, inspece_num, is_normal}"
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPdInspecelTask",
			params:{
				inspece_id: inspece_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}

// 设备巡查人员列表查询
const baseData_getPdInspecelTaskWorkerList = () => {
	return new Promise((resolve)=>{
		let result = "user_id, user_name"
		let query = util.formatGraphqlQuery([{
			fun: "workerList:baseData_getPdInspecelTaskWorkerList",
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res.workerList)
		})
	})
}

/**
 * 字典查询查询
 */
const baseData_getToolDataList = (code) => {
	// console.log('code',code.code)
	return new Promise((resolve) => {
		let result = "data_text, data_value"
		let query = util.formatGraphqlQuery([{
			// fun: "fbTypeList:baseData_getToolDataList",
			// params: {
			// 	code: code ? code + "_nostr" : "PM_FEEDBACK_FBTYPE" + "_nostr"
			// },
			fun: "payerList:baseData_getToolDataList",
			params: {
				code: code.code
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			// resolve(res.fbTypeList)
			resolve(res.payerList)
		})
	})
}

/**
 * 反馈列表查询
 */
const pmFeedback_getPmFeedbackList = ({ date, dateMonth, start = 0, limit = 20 }) => {
	return new Promise((resolve) => {
		let result = "pm_feedback_id, apply_no, fb_type, fb_address, fb_desc, apply_user, apply_company_name, apply_phone, apply_date, fb_pic, apply_remark, deal_user, deal_time, deal_pic, evaluate_result, evaluate_content, evaluate_date, evaluator, check_user_name, check_dept_name, check_date, check_result, status"
		let params = {
			start: start,
			limit: limit
		}

		// 反馈日期(实际反馈日期 >= 反馈日期 <= 实际反馈日期)
		if (date) {
			params["date"] = date + "_nostr"
		}
		if (dateMonth) {
			params["dateMonth"] = dateMonth
		}
		let query = util.formatGraphqlQuery([{
			fun: "unDoneFeedbackList:pmFeedback_getPmFeedbackList",
			params: {
				spStatus: "UNDONE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}, {
			fun: "completeFeedbackList:pmFeedback_getPmFeedbackList",
			params: {
				spStatus: "COMPLETE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

/**
 * 物业信息查询
 */
const assets_getAssetsProperty = (params = {}) => {
	return new Promise((resolve) => {
		let result = "property_id, property_code, property_type_name, property_profile, publisher, publish_date, property_image, building, storey, property_use, real_area, floor_area, sharing_area, pricing_amount, tag_name, room_price"
		params = {
			start: 0,
			limit: 10,
			...params
		}
		console.warn("params: ", params)
		let query = util.formatGraphqlQuery([{
			fun: "assetsList:assets_getAssetsProperty",
			params: params,
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'app').then((res) => {
			resolve(res.assetsList)
		})
	})
}


/**
 * 物业信息过滤条件查询
 */
const assets_getFilter = ({ property_type_id }) => {
	console.log('property_type_id',property_type_id);
	return new Promise((resolve) => {
		let query = util.formatGraphqlQuery([{
			//过滤条件: 最小/最大面积
			fun: "filter_floorAreaRange:assets_getFilter_floorAreaRange",
			params: {
				property_type_id: property_type_id
			},
			result: "floor_area_min, floor_area_max"
		}, {
			// 过滤条件: 楼栋种类
			fun: "filter_BuildingRange: assets_getFilter_buildingRange",
			params: {
				property_type_id: property_type_id
			},
			result: "building"
		}, {
			// 过滤条件: 楼层种类
			fun: "filter_StoreyRange: assets_getFilter_storeyRange",
			params: {
				property_type_id: property_type_id
			},
			result: "storey"
		}, {
			// 过滤条件: 最低/最高定价
			fun: "filter_PublishMonthrentRange: assets_getFilter_pricingAmountRange",
			params: {
				property_type_id: property_type_id
			},
			result: "pricing_amount_min, pricing_amount_max"
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res)
		})
	})
}

/**
 * 物业分类查询
 */
const assets_getAssetsPropertyType = () => {
	return new Promise((resolve) => {
		let result = "property_type_id, property_type_name"
		let query = util.formatGraphqlQuery([{
			fun: "propertyTypeList:assets_getAssetsPropertyType",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res.propertyTypeList)
		})
	})
}

/**
 * 缴费通知列表查询
 */
const piPayNotice_getPiPayNoticeList = (params = {}) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			// orderBy:'',
			...params
		}
		let result = "pay_id, apply_no, company_name, property_code, month_money, month_electricity_money, month_water_money, management_money, pool_water_money, pool_electricity_money, total_money, total_money_capital, collection_unit, collection_bank, collection_account, handle_date, status, " +

			// #缴费租金清单
			"piPayNoticeRentdets{property_code, billing_area, charge_price, month_money, monthly_quarterly, default_money, payable_total_money}," +
			//#缴费水费清单
			"piPayNoticeHydropowerWaterdets{project_name, table_no, last_month_read, month_read, month_dosage,standard_price,month_money,monthly_quarterly,default_money,payable_total_money}," +
			//#缴费电费清单
			"piPayNoticeHydropowerElectricdets{project_name, table_no, last_month_read, month_read, month_dosage,standard_price,month_money,monthly_quarterly,default_money,payable_total_money}," +
			//#缴费管理费清单
			"piPayNoticeManagedets{project_name, charge_price, month_money, monthly_quarterly, default_money, payable_total_money}," +
			//#缴费公摊水费清单
			"piPayNoticeShareWaterdets{share_project,park_totalmoney,customer_totalmoney,share_totalmoney,area,month_money,arrear_money,breach_money,amount_money}," +
			// #缴费公摊电费清单
			"piPayNoticeShareElectricdets{share_project,park_totalmoney,customer_totalmoney,share_totalmoney,area,month_money,arrear_money,breach_money,amount_money}," +
			// "piPayNoticeSharedets{share_project, park_totalmoney, customer_totalmoney, share_totalmoney, area, month_money, arrear_money, breach_money, amount_money}," +

			// #其他费用(有偿服务费)
			"piPayNoticeOtherdets{project_name, month_money, arrear_money, breach_money, amount_money}"
		let query = util.formatGraphqlQuery([{
			fun: "unDoneList:piPayNotice_getPiPayNoticeList",
			params: {
				spStatus: "UNDONE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		}, 
		{
			fun: "completeList:piPayNotice_getPiPayNoticeList",
			params: {
				spStatus: "COMPLETE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: result
		},
		])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res)
		})
	})
}

/**
 * 缴费通知单个查询
 */
const piPayNotice_getPiPayNoticeSingle = ({ pay_id }) => {
	return new Promise((resolve) => {
		let result = "pay_id, apply_no, company_name, property_code, month_money, month_electricity_money, month_water_money, management_money, pool_water_money, pool_electricity_money, total_money, total_money_capital, collection_unit, collection_bank, collection_account, handle_date, status, " +
			"piPayNoticeRentdets{property_code, billing_area, charge_price, month_money, monthly_quarterly, default_money, payable_total_money}," +
			//#缴费水费清单
			"piPayNoticeHydropowerWaterdets{project_name, table_no, last_month_read, month_read, month_dosage,standard_price,month_money,monthly_quarterly,default_money,payable_total_money}" +
			//#缴费电费清单
			"piPayNoticeHydropowerElectricdets{project_name, table_no, last_month_read, month_read, month_dosage,standard_price,month_money,monthly_quarterly,default_money,payable_total_money}" +
			"piPayNoticeManagedets{project_name, charge_price, month_money, monthly_quarterly, default_money, payable_total_money}," +
			"piPayNoticeSharedets{share_project, park_totalmoney, customer_totalmoney, share_totalmoney, area, month_money, arrear_money, breach_money, amount_money}," +
			"piPayNoticeOtherdets{project_name, month_money, arrear_money, breach_money, amount_money}"
		let query = util.formatGraphqlQuery([{
			fun: "data:piPayNotice_getPiPayNoticeSingle",
			params: {
				pay_id: pay_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.data)
		})
	})
}

/**
 * 我的合同列表查询
 */
const mySelf_getMyContractList = () => {
	return new Promise((resolve) => {
		let result = "contract_code, contract_name, company_name, company_user, company_phone,  sign_date, start_date, end_date, years, manage_price, water_price, electric_price, conditioning_price, property_rent, total_rent, manage_totalprice, total_area, pro_area, total_deposit, total_contract_money, total_rent_capitalization, free_monthly, pay_type, rent_increase_state, lease_purpose, type, payee_name, payee_phone, payee_address, bank, bank_name, bank_account, party_bank, party_bank_name, party_bank_account, lease_term, " +
			"dets{property_code, property_image, building, storey, floor_area, tag_name, property_rent, water_no, meter_no, condition_no}"
		let query = util.formatGraphqlQuery([{
			fun: "myContractList:mySelf_getMyContractList",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'wx').then((res) => {
			resolve(res.myContractList)
		})
	})
}

/**
 * 我的员工列表查询
 */
const mySelf_getCustomerStaff = () => {
	return new Promise((resolve) => {
		let result = "pi_customer_staff_id, user_name, staff_id, user_sex, user_position, description, user_phonenum, user_email, user_picurl"
		let query = util.formatGraphqlQuery([{
			fun: "myCustomerList:mySelf_getCustomerStaff",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.myCustomerList)
		})
	})
}

//防疫入园进度查询
const prevention_park_list = (params = {}, status) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 10,
			...params
		}
		let result = "park_id,apply_no,apply_user_id,apply_user,company,apply_date,phone,start_address,highrisk,traffic_manner,plate_number,apply_park_date,jkcode,xccode,source_status,park_reason,remark,accept_result,accept_conclusion,accept_remark,accept_user_id,accept_user,accept_dept_id,accept_dept_name,accept_date,register_jkcode,register_xccode,inpark_time,register_remark,register_user_id,register_user,register_dept_id,register_dept_name,register_date,cancel_time,cancel_reason,park_status"
		let query = util.formatGraphqlQuery([{
			fun: status + ':poPreventionPark_getPreventionParkList',
			params: {
				dateMonth: "",
				searchKey: "",
				spStatus: status + "_nostr",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

//防疫详情
const prevention_park_detail = (park_id) => {
	return new Promise((resolve) => {
		let result = "park_id,apply_no,apply_user_id,apply_user,company,apply_date,phone,start_address,highrisk,traffic_manner,plate_number,apply_park_date,jkcode,xccode,source_status,park_reason,remark,accept_result,accept_conclusion,accept_remark,accept_user_id,accept_user,accept_dept_id,accept_dept_name,accept_date,register_jkcode,register_xccode,inpark_time,register_remark,register_user_id,register_user,register_dept_id,register_dept_name,register_date,cancel_time,cancel_reason,park_status"
		let query = util.formatGraphqlQuery([{
			fun: 'poPreventionPark_getPreventionPark',
			params: {
				park_id: park_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}


//物业摘牌信息列表
const get_delistData_getDelistList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "pi_delist_id,handle_user_id,apply_no,handle_user_name,handle_dept_name,apply_user_id,apply_user_name,apply_phone,apply_email,apply_date,handle_dept_id,apply_address,building_area,total_money,total_money_str,handle_date,caution_money,review_results,caution_money_str,apply_remark,hangnet_status,apply_dept_name,dets{pi_delist_det_id,pi_delist_id,property_code,building,property_id,storey,property_type_name,room_no,property_address,property_use,floor_area,leasing_positioning,property_deploy,rent_money,operational_status,clinch_money,building_id,storey_id,pricing_rent_price}"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":delistData_getDelistList",
			params: {
				spStatus: statusName + "_nostr",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

//物业摘牌信息详情
const get_delistData_getDelistDetail = (pi_delist_id) => {
	return new Promise((resolve) => {
		let result = "pi_delist_id,handle_user_id,apply_no,handle_user_name,handle_dept_name,apply_user_id,apply_user_name,apply_phone,apply_email,apply_date,handle_dept_id,apply_address,building_area,total_money,total_money_str,handle_date,caution_money,review_results,caution_money_str,apply_remark,hangnet_status,apply_dept_name,dets{pi_delist_det_id,pi_delist_id,property_code,building,property_id,storey,property_type_name,room_no,property_address,property_use,floor_area,leasing_positioning,property_deploy,rent_money,operational_status,clinch_money,building_id,storey_id,pricing_rent_price}"
		let query = util.formatGraphqlQuery([{
			fun: "delistData_getDelist",
			params: {
				pi_delist_id: pi_delist_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

//挂牌列表
const piHangNetData_list = (params = {}, status) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 10,
			...params
		}
		let result = "pi_hangnet_id,handle_user_id,handle_user_name,handle_dept_name,apply_remark,apply_start_date,apply_end_date,hangnet_no,apply_platform,apply_feature,handle_dept_id,apply_date,publish_content,publish_info,handle_date,hangnet_status,dets{pi_hangnet_det_id,property_type_id,property_code,pi_hangnet_id,building,property_id,storey,property_type_name,room_no,property_address,property_use,floor_area,leasing_positioning,property_deploy,operational_status,building_id,storey_id,pricing_rent_price}"
		let query = util.formatGraphqlQuery([{
			fun: status + ':piHangNetData_getPiHangNetList',
			params: {
				spStatus: status + "_nostr",
				searchKey: "",
				dateMonth: "",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

// 有偿服务列表
const mySelf_psPaidService_getPsPaidList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 10,
			...params
		}
		let result = "paid_id,apply_no,content_id,content_no,matters_name,charging_standard,charging_unit,receivable,property_id,building,storey,room_no,real_area,service_term,apply_user_id,apply_user,apply_date,remark,cancel_time,cancel_reason,accept_result,accept_opinion,service_start_date,service_end_date,paid_money,accept_user_id,accept_user,accept_dept_id,accept_dept_name,accept_date,accept_remark,receivable_money,actually_money,payment_remark,handle_user_id,handle_user,handle_dept_id,handle_dept_name,handle_date,paid_status,dets{paid_det_id,paid_id,serial_no,matter_content,paid_det_status}"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":psPaidService_getPsPaidList",
			params: {
				spStatus: statusName + "_nostr",
				searchKey: '',
				dateMonth: '',
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

//有偿服务详情
const mySelf_psPaidService_getPsPaid = (paid_id) => {
	return new Promise((resolve) => {
		let result = "paid_id,apply_no,content_id,content_no,matters_name,charging_standard,charging_unit,receivable,property_id,building,storey,room_no,real_area,service_term,apply_user_id,apply_user,apply_date,remark,cancel_time,cancel_reason,accept_result,accept_opinion,service_start_date,service_end_date,paid_money,accept_user_id,accept_user,accept_dept_id,accept_dept_name,accept_date,accept_remark,receivable_money,actually_money,payment_remark,handle_user_id,handle_user,handle_dept_id,handle_dept_name,handle_date,paid_status,dets{paid_det_id,paid_id,serial_no,matter_content,paid_det_status}"
		let query = util.formatGraphqlQuery([{
			fun: "task:psPaidService_getPsPaid",
			params: {
				paid_id: paid_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

// 有偿服务内容列表
const mySelf_psPaidContent_getPaidContentList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 10,
			...params
		}
		let result = "content_id,content_no,matters_name,building,charging_standard,charging_unit,service_profile,sample_image,remark, maker_user_id,maker_user,maker_dept_id,maker_date,status,dets{content_det_id,content_id,serial_no,matter_content,service_period,remark,status}"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":psPaidContent_getPaidContentList",
			params: {
				spStatus: statusName + "_nostr",
				searchKey: '',
				dateMonth: '',
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

//有偿服务内容详情
const mySelf_psPaidContent_getPaidContent = (content_id) => {
	return new Promise((resolve) => {
		let result = "content_id,content_no,matters_name,building,charging_standard,charging_unit,service_profile,sample_image,remark, maker_user_id,maker_user,maker_dept_id,maker_date,status,dets{content_det_id,content_id,serial_no,matter_content,service_period,remark,status}"
		let query = util.formatGraphqlQuery([{
			fun: "task:psPaidContent_getPaidContent",
			params: {
				content_id: content_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//物业巡检
const get_taskAccepteList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "pi_delist_id,handle_user_id,apply_no,handle_user_name,handle_dept_name,apply_user_id,apply_user_name,apply_phone,apply_email,apply_date,handle_dept_id,apply_address,building_area,total_money,total_money_str,handle_date,caution_money,review_results,caution_money_str,apply_remark,hangnet_status,apply_dept_name,dets{pi_delist_det_id,pi_delist_id,property_code,building,property_id,storey,property_type_name,room_no,property_address,property_use,floor_area,leasing_positioning,property_deploy,rent_money,operational_status,clinch_money,building_id,storey_id,pricing_rent_price}"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":taskAccepteList",
			params: {
				spStatus: statusName + "_nostr",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//开票表单列表
const get_invoic_apply_list = (params = {}, status) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 2,
			...params
		}
		let result = "pi_invoic_id,apply_no,apply_payer_name,apply_payer_id,apply_payer_no,apply_address,apply_bank_account,apply_phone,apply_invoic_type,apply_total,apply_total_str,apply_pic,apply_isemail,apply_email,receiver_results,apply_remark,apply_user_name,apply_user_id,apply_dept_name,apply_dept_id,apply_date,cancel_date,cancel_content,receiver_content,invoic_info,invoic_text,register_user_name,register_user_id,register_dept_name,register_dept_id,register_remark,register_date,receiver_user_name,receiver_user_id,receiver_dept_name,receiver_dept_id,receiver_date,invoic_status,dets{pi_invoic_det_id,pi_invoic_id,project_no,project_type,project_name,project_num,project_price,project_money}"
		let query = util.formatGraphqlQuery([{
			fun: status + ':piInvoicData_getPiInvoicList',
			params: {
				spStatus: status + "_nostr",
				searchKey: "",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//车辆信息列表
const get_campusVehicleData_getCampusVehicleList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "vehicle_id,visit_people_id,user_id,company_id,people_name,company_name,black_list,vehicle_model,vehicle_number,is_visit_vehicle,insure_start_date,insure_bug_date,insure_end_date,insure_money,dept_id,reserve_status,insurance_status,vehicle_name,dept_name,maintenance_status,vehicle_no,insurance_det_status,assets_dept_name,assets_dept_id,remark,vehicle_records{vehicle_record_id,vehicle_id,start_time,end_time,reserve_no,dept_name,dept_id,num,user_nature,dirver,dirver_id,customer_name,customer_id,customer_phone,start_address,end_address,}oilcard_records{oilcard_record_id,vehicle_id,recharg_no,oilcard_no,recharg_money,vehicle_model,vehicle_number,handle_user_id,handle_user_name,handle_dept_name,handle_dept_id,recharg_time}"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":campusVehicleData_getCampusVehicleList",
			params: {
				spStatus: statusName + "_nostr",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//车辆预约信息列表
const get_poCarReserve_getCarReserveList = (params = {}, statusName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "reserve_status,car_reserve_id,apply_no,apply_car_name,apply_car_id,apply_car_dept,apply_car_dept_id,apply_phone,apply_num,apply_car_type,apply_start_time,apply_end_time,apply_isdriver,apply_start_address,apply_end_address,reserve_status,apply_car_content,apply_remark,apply_user_name,apply_user_id,apply_dept_name,apply_dept_id,apply_date,receiver_results,receiver_content,receiver_dirver,receiver_remark,receiver_user_name,receiver_user_id,receiver_dept_name,receiver_dept_id,receiver_date,requisi_time,requisi_content,requisi_remark,requisi_user_name,requisi_user_id,requisi_dept_name,requisi_dept_id,requisi_date,return_time,return_isovertime,return_situation,abnorm_content,return_remark,return_user_name,return_user_id,return_dept_name,return_dept_id,return_date,pay_user_name,pay_user_id,repair_money,repair_user_name,repair_user_id,repair_content,repair_remark,record_user_name,record_user_id,record_dept_name,record_dept_id,record_date,reserve_appid,receiver_dirver_id,vehicle_no,vehicle_name,vehicle_number,vehicle_model,vehicle_id"
		let query = util.formatGraphqlQuery([{
			fun: statusName + ":poCarReserve_getCarReserveList",
			params: {
				spStatus: statusName + "_nostr",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
let TASKMAP = "id, apply_no, apply_date, rightsKey, " +
	"pi_looking_room{look_id, apply_no, apply_user, apply_user_name, apply_date, company_name, " +
	"contact_phone, start_time, lease_purpose, property_remark, " +
	"accepted_date, accept_result, accept_starttime, accepted_user_id, " +
	"accepted_user_name, accepted_date, accept_result, accept_starttime, " +
	"accept_remark,register_user_id, register_user, register_date, " +
	"check_businessdate, is_intention, property_dec, need_repair, " +
	"purpose, company_claim, intent_area, intent_price, intent_parking, " +
	"intent_environment, register_remark,visit_user_id, visit_user, " +
	"visit_date, is_satisfy, visit_price, visit_area, visit_parking, " +
	"visit_company_price,visit_record, visit_remark,company_look_num, jd_status, " +
	"pi_looking_property_dets{" +
	"property_detid, property_id, property_code, building, storey, " +
	"floor_area, pricing_amount, property_image,company_look_num, tag_name " +
	"}" +
	"}" +
	"pm_service_repair{repair_id, apply_no, apply_date, apply_company_name, " +
	"apply_user, apply_phone, property_id, property_code, buliding_no, " +
	"storey_no, repair_Address, repair_content, repair_image, urgency, " +
	"apply_remark, receiver, receiver_id, receive_time, dispatcher, " +
	"dispatcher_id, dispatch_time, plan_date, repair_type_name, " +
	"repair_type_nameone, repair_type_nametwo, repair_type_idtwo, " +
	"finish_time, work_time, repair_money, payer, record_image, appointment_time," +
	"record_remark, record_user_name, record_dept_name, record_date, jd_status, " +
	"materials{" +
	"material_name, unit, price, num, total" +
	"} " +
	"}" +
	"pm_feedback{" +
	"pm_feedback_id, apply_no, fb_type, fb_pic, fb_address, fb_desc, " +
	"apply_user, apply_company_name, apply_phone, apply_date, " +
	"apply_remark, acceptor, accept_id, accept_result, followman_id, " +
	"followman, deal_user, deal_time, deal_pic, evaluate_result, " +
	"evaluate_content, evaluate_date, treatment, evaluator, check_user_name, " +
	"check_dept_name, check_date, check_result, status" +
	"}" +
	"pm_patrol_task{" +
	"task_id,task_no,plan_start_time,plan_partorls_time,plan_end_time," +
	"target_id,standard_id,standard_code,standard_name,route_id,route_code," +
	"route_name,route_user_name,route_user_id,is_emphasis,dispatcher," +
	"dispatcher_id,dispatch_time,followman,followman_id,receiver," +
	"receiver_id,receive_time,receive_dept_name,is_timeout,finish_time," +
	"patrol_result,abnormal_content,patrol_image,patrol_remark,record_user_id," +
	"record_user_name,record_dept_id,record_dept_code,record_dept_name," +
	"record_date,deal_time,deal_program,deal_remark,deal_user_name," +
	"deal_user_id,deal_dept_name,deal_dept_id,deal_date,check_user_id," +
	"check_user_name,check_dept_id,check_dept_code,check_dept_name,check_date," +
	"check_result,check_remark,status," +
	"dets{" +
	"task_det_id,task_id,target_id,route_id,route_no,property_id,property_code," +
	"property_building,property_storey,property_room,property_type_id," +
	"property_type_code,property_type_name,property_status,leas_unit_id," +
	"leas_unit_name,contact_name,contact_phone,abnormal_content,patrol_image," +
	"partorls_content,is_normal" +
	"}" +
	"}" +
	`pd_maintain_task{
			maintain_id, maintain_no, plan_start_date, plan_partorls_time, plan_end_date,
			target_id, standard_id, standard_code, standard_name, device_id, device_code,
			device_no, device_name, maintenance_dept_id, maintenance_dept_name,
			is_emphasis, dispatcher, dispatcher_id, dispatch_time,
			visit_time, followman, followman_id, receiver, receiver_id, receive_time,
			receive_dept_name, is_timeout, finish_time, maintain_image, maintain_remark,
			record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name,
			record_date, confirm_result, confirm_proposal, confirm_remark, confirm_user_name,
			confirm_user_id, confirm_dept_id, confirm_dept_name,
			check_user_id, check_user_name, check_dept_id, check_dept_code,
			check_dept_name, check_date, check_result, check_remark, status,
			dets{
				maintain_det_id, maintain_id, partorls_no, partorls_content, is_comply
			}
	}` +
	`pd_inspecel_task{
		inspece_id, inspece_no, plan_start_time, plan_partorls_time, plan_end_time,
		target_id, standard_id, standard_code, standard_name, device_id, device_code,
		device_no, device_name, is_emphasis, dispatcher, dispatcher_id, dispatch_time,
		followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name,
		receiver_remark, is_timeout, finish_time, patrol_result, abnormal_content,
		patrol_image, patrol_remark, record_user_id, record_user_name, record_dept_id,
		record_dept_code, record_dept_name, record_date, check_user_id, check_user_name,
		check_dept_id, check_dept_code, check_dept_name, check_date, check_result,
		check_remark, status,
		dets{
			inspece_det_id, inspece_id, inspece_no, inspece_content, standard_num,
			min_num, max_num, inspece_num, is_normal
		}
	}` +
	`pd_device_repair{
		repair_id, apply_no, repair_type_name, repair_type_code, repair_type_id, device_id,
		device_code, device_no, device_name, device_type, device_size, type_id, address,
		apply_image, apply_user_id, apply_user, apply_company_id, apply_company_code,
		apply_company_name, apply_phone, urgency, apply_date, appointment_time,
		repair_content, apply_remark, dispatcher, dispatcher_id, dispatch_time,
		followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name,
		receiver_remark, repair_image, repair_type_name1, repair_type_code1, repair_type_id1,
		repair_type_name2, repair_type_code2, repair_type_id2, finish_time, work_time,
		record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name,
		record_date, record_remark, evaluate_result, evaluate_date, evaluator, evaluate_content,
		evaluate_remark, check_user_id, check_user_name, check_dept_id, check_dept_code,
		check_dept_name, check_date, check_result, check_remark, status,
		dets{
			repair_det_id, repair_id, material_name, unit, num, price, total
		}
	}` +
	`pm_sinspection{
		spection_id, plan_no, plan_name, sinspection_content, inspect_user_name,
		inspect_user_id, inspect_dept_id, inspect_dept_code, inspect_dept_name,
		inspect_date, plan_remark, plan_user_name, plan_user_id, plan_dept_id,
		plan_dept_code, plan_dept_name, plan_date, record_content, record_image,
		record_remark, record_user_name, record_user_id, record_dept_id,
		record_dept_code, record_dept_name, record_date,
		solution_content, solution_image, solution_remark, solution_user_name,
		solution_user_id, solution_dept_id, solution_dept_code, solution_dept_name,
		solution_date, check_user_id, check_user_name, check_dept_id, check_dept_code,
		check_dept_name, check_date, check_result, check_remark, status,
		dets{
			sinspection_det_id, spection_id, property_id, property_code, property_building,
			property_storey, property_room, property_type_id, property_type_code,
			property_type_name, check_content, is_abnormal, abnormal_desc, solution_type_value, solution_type_text, solution_desc
		}
	}`
//工单信息-待办
const baseData_getMyTask_accept = (params) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			rightsKey: '',
			...params
		}
		let query = util.formatGraphqlQuery([{
			fun: "taskAccepteList:baseData_getMyTask",
			params: {
				taskStatus: 'ACCEPTE' + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: TASKMAP
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//工单信息-待处理
const baseData_getMyTask_deal = (params) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			rightsKey: '',
			...params
		}
		let query = util.formatGraphqlQuery([{
			fun: "taskDealList:baseData_getMyTask",
			params: {
				taskStatus: "DEAL" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: TASKMAP
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//工单信息-已完成
const baseData_getMyTask_complete = (params) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			rightsKey: '',
			...params
		}
		let query = util.formatGraphqlQuery([{
			fun: "taskCompleteList: baseData_getMyTask",
			params: {
				taskStatus: "COMPLETE" + "_nostr",	// UNDONE 未完成， COMPLETE 已完成
				...params
			},
			result: TASKMAP
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//我的客户
const baseData_getMyPiCustomerFile = (params) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "customer_id,company_code,company_name,company_social_code,registered_capital,"
			+ "industry,customer_type,customer_profile,customer_user,customer_phone,address,"
			+ "company_website,email,unit_fax,urgent_contact,urgent_contact_phone,is_intention,"
			+ "customer_status,bank,bank_name,bank_account,invoice_type,invoice_name,invoice_phone,"
			+ "invoice_address"
		let query = util.formatGraphqlQuery([{
			fun: "customerList:baseData_getMyPiCustomerFile",
			params: {
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//区域选择
const baseData_getPdDeviceSite = (pp) => {
	return new Promise((resolve) => {
		let params = {
			start: 0,
			limit: 49,
			...pp
		}
		let query = util.formatGraphqlQuery([{
			fun: "site_info: baseData_getIBMSDeviceSite",
			params: params,
			result: "site_id, site_code, site_name, site_allname, site_level, site_supe_code, memo"
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//设备控制列表
const baseData_getPdDeviceCardInfoBySiteId = (pp) => {
	return new Promise((resolve) => {
		let params = {
			start: 0,
			limit: 49,
			...pp
			// site_id: siteId || '100110061011'
		}
		let query = util.formatGraphqlQuery([{
			fun: "device_info: baseData_getIBMSDeviceCardInfoBySiteId",
			params: params,
			result: "conditioner_status ,on_off ,run_mode,fan_speed ,temp_set,en_on_off ,en_mode, en_temp, brightness,color,device_id, device_code, lighting_area_id, device_name, device_type, device_size, type_name, dept_name, install_site,wdept_name,site_name,serial_id,time,factory,provider_name"
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
const baseData_getPmServiceRepair = (repair_id) => {
	return new Promise((resolve) => {
		let result = "repair_id, apply_no, apply_date, apply_company_name, apply_user, apply_phone,property_id, property_code, buliding_no, storey_no, repair_Address, repair_content, repair_image, urgency, apply_remark, receiver, receiver_id, receive_time, dispatcher, dispatcher_id, dispatch_time, plan_date, repair_type_name, repair_type_nameone, repair_type_nametwo, repair_type_idtwo, finish_time, work_time, repair_money, payer, record_image, record_remark, record_user_name, record_dept_name, record_date, jd_status, appointment_time, materials{material_name, unit, price, num, total} "
		let query = util.formatGraphqlQuery([{
			fun: "pmServiceRepair: baseData_getPmServiceRepair",
			params: {
				repair_id: repair_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//物业巡检列表查询
const baseData_getMyTask_patrol_accept = (params = {}) => {
	return baseData_getMyTask_patrol(params, 'ACCEPTE', 'taskAccepteList')
}

const baseData_getMyTask_patrol_deal = (params = {}) => {
	return baseData_getMyTask_patrol(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_patrol_complete = (params = {}) => {
	return baseData_getMyTask_patrol(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_patrol = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pm_patrol_task{task_id,task_no,plan_start_time,plan_partorls_time,plan_end_time,target_id,standard_id,standard_code,standard_name,route_id,route_code,route_name,route_user_name,route_user_id,is_emphasis,dispatcher,dispatcher_id,dispatch_time,followman,followman_id,receiver,receiver_id,receive_time,receive_dept_name,is_timeout,finish_time,patrol_result,abnormal_content,patrol_image,patrol_remark,record_user_id,record_user_name,record_dept_id,record_dept_code,record_dept_name,record_date,deal_time,deal_program,deal_remark,deal_user_name,deal_user_id,deal_dept_name,deal_dept_id,deal_date,check_user_id,check_user_name,check_dept_id,check_dept_code,check_dept_name,check_date,check_result,check_remark,status,dets{task_det_id,task_id,target_id,route_id,route_no,property_id,property_code,property_building,property_storey,property_room,property_type_id,property_type_code,property_type_name,property_status,leas_unit_id,leas_unit_name,contact_name,contact_phone,abnormal_content,patrol_image,partorls_content,is_normal}}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pm_patrol_task",
				...params
			},
			result: result,
		}])
		util.postGraphql({ query }, {
			isLoading: false
		},'app').then((res) => {
			resolve(res)
		})
	})
}
const baseData_getPmPatrolTask = (task_id) => {
	return new Promise((resolve) => {
		let result = "task_id,task_no,plan_start_time,plan_partorls_time,plan_end_time,target_id,standard_id,standard_code,standard_name,route_id,route_code,route_name,route_user_name,route_user_id,is_emphasis,dispatcher,dispatcher_id,dispatch_time,followman,followman_id,receiver,receiver_id,receive_time,receive_dept_name,is_timeout,finish_time,patrol_result,abnormal_content,patrol_image,patrol_remark,record_user_id,record_user_name,record_dept_id,record_dept_code,record_dept_name,record_date,deal_time,deal_program,deal_remark,deal_user_name,deal_user_id,deal_dept_name,deal_dept_id,deal_date,check_user_id,check_user_name,check_dept_id,check_dept_code,check_dept_name,check_date,check_result,check_remark,status,dets{task_det_id,task_id,target_id,route_id,route_no,property_id,property_code,property_building,property_storey,property_room,property_type_id,property_type_code,property_type_name,property_status,leas_unit_id,leas_unit_name,contact_name,contact_phone,abnormal_content,patrol_image,partorls_content,is_normal} "
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPmPatrolTask",
			params: {
				task_id: task_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
// 物管人员列表查询
const baseData_getPmPatrolTaskWorkerList = () => {
	return new Promise((resolve) => {
		let result = "user_id, user_name"
		let query = util.formatGraphqlQuery([{
			fun: "workerList:baseData_getPmPatrolTaskWorkerList",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.workerList)
		})
	})
}
//报修列表查询
const baseData_getMyTask_repair_accept = (params = {}) => {
	return baseData_getMyTask_repair(params, 'ACCEPTE', 'taskAccepteList')
}

const baseData_getMyTask_repair_deal = (params = {}) => {
	return baseData_getMyTask_repair(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_repair_complete = (params = {}) => {
	return baseData_getMyTask_repair(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_repair = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, " +
			"pm_service_repair{repair_id, apply_no, apply_date, apply_company_name, apply_user, apply_phone, property_id, property_code, buliding_no, storey_no, repair_Address, repair_content, repair_image, urgency, appointment_time, apply_remark, receiver, receiver_id, receive_time, dispatcher, dispatcher_id, dispatch_time, plan_date, repair_type_name, repair_type_nameone, repair_type_nametwo, repair_type_idtwo, finish_time, work_time, repair_money, payer, record_image, record_remark, record_user_name, record_dept_name, record_date, jd_status, appointment_time, " +
			"materials{material_name, unit, price, num, total} " +
			"}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pm_service_repair",
				...params
			},
			result: result
		}])
		console.log('query',query)
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
// 维修人员列表查询
const baseData_getRepairWorkerList = (look_id) => {
	return new Promise((resolve) => {
		let result = "user_id, user_name"
		let query = util.formatGraphqlQuery([{
			fun: "workerList:baseData_getRepairWorkerList",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.workerList)
		})
	})
}
//设备巡检列表查询
const baseData_getMyTask_inspecel_accept = (params = {}) => {
	return baseData_getMyTask_inspecel(params, 'ACCEPTE', 'taskAccepteList')
}

const baseData_getMyTask_inspecel_deal = (params = {}) => {
	return baseData_getMyTask_inspecel(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_inspecel_complete = (params = {}) => {
	return baseData_getMyTask_inspecel(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_inspecel = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pd_inspecel_task{inspece_id, inspece_no, plan_start_time, plan_partorls_time, plan_end_time, target_id, standard_id, standard_code, standard_name, device_id, device_code, device_no, device_name, is_emphasis, dispatcher, dispatcher_id, dispatch_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, receiver_remark, is_timeout, finish_time, patrol_result, abnormal_content, patrol_image, patrol_remark, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{inspece_det_id, inspece_id, inspece_no, inspece_content, standard_num, min_num, max_num, inspece_num, is_normal}}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pd_inspecel_task",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//设备保养列表查询
const baseData_getMyTask_maintain_accept = (params = {}) => {
	return baseData_getMyTask_maintain(params, 'ACCEPTE', 'taskAccepteList')
}

const baseData_getMyTask_maintain_deal = (params = {}) => {
	return baseData_getMyTask_maintain(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_maintain_complete = (params = {}) => {
	return baseData_getMyTask_maintain(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_maintain = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pd_maintain_task{maintain_id, maintain_no, plan_start_date, plan_partorls_time, plan_end_date, target_id, standard_id, standard_code, standard_name, device_id, device_code, device_no, device_name, maintenance_dept_id, maintenance_dept_name, is_emphasis, dispatcher, dispatcher_id, dispatch_time,visit_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, is_timeout, finish_time, maintain_image, maintain_remark, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, confirm_result, confirm_proposal, confirm_remark, confirm_user_name, confirm_user_id, confirm_dept_id, confirm_dept_name, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{maintain_det_id, maintain_id, partorls_no, partorls_content, is_comply}}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pd_maintain_task",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
// 保养设备清单
const baseData_getMyDeviceMaintainlScaling = () => {
	return new Promise((resolve) => {
		let result = "device_code, device_no, device_name, device_type, device_size, address, last_patrol_date, patrol_cycle, next_patrol_date"
		let query = util.formatGraphqlQuery([{
			fun: "deviceList:baseData_getMyDeviceMaintainlScaling",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.deviceList)
		})
	})
}
//意见箱
const baseData_getPmFeedback = (pm_feedback_id) => {
	return new Promise((resolve) => {
		let result = 'pm_feedback_id, apply_no, treatment, fb_type, fb_pic, fb_address, fb_desc, apply_user, apply_company_name, apply_phone, apply_date, apply_remark, acceptor, accept_id, accept_result, followman_id, followman, deal_user, deal_time, deal_pic, evaluate_result, evaluate_content, evaluate_date, evaluator, check_user_name, check_dept_name, check_date, check_result, status'
		let query = util.formatGraphqlQuery([{
			fun: "pmFeedback: baseData_getPmFeedback",
			params: {
				pm_feedback_id: pm_feedback_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//专项检查列表查询
const baseData_getMyTask_sinspection_deal = (params = {}) => {
	return baseData_getMyTask_sinspection(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_sinspection_complete = (params = {}) => {
	return baseData_getMyTask_sinspection(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_sinspection = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pm_sinspection{spection_id, plan_no, plan_name, sinspection_content, inspect_user_name,   inspect_user_id, inspect_dept_id, inspect_dept_code, inspect_dept_name, inspect_date, plan_remark, plan_user_name, plan_user_id, plan_dept_id, plan_dept_code, plan_dept_name, plan_date, record_content, record_image, record_remark, record_user_name, record_user_id, record_dept_id, record_dept_code, record_dept_name, record_date, solution_content, solution_image, solution_remark, solution_user_name, solution_user_id, solution_dept_id, solution_dept_code, solution_dept_name, solution_date, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{sinspection_det_id, spection_id, property_id, property_code, property_building, property_storey, property_room, property_type_id, property_type_code, property_type_name, check_content, is_abnormal, abnormal_desc, solution_type_value, solution_type_text, solution_desc}}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pm_sinspection",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//设备微信列表查询
const baseData_getMyTask_device_repair_accept = (params = {}) => {
	return baseData_getMyTask_device_repair(params, 'ACCEPTE', 'taskAccepteList')
}

const baseData_getMyTask_device_repair_deal = (params = {}) => {
	return baseData_getMyTask_device_repair(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_device_repair_complete = (params = {}) => {
	return baseData_getMyTask_device_repair(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_device_repair = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pd_device_repair{repair_id, apply_no, repair_type_name, repair_type_code, repair_type_id, device_id, device_code, device_no, device_name, device_type, device_size, type_id, address, apply_image, apply_user_id, apply_user, apply_company_id, apply_company_code, apply_company_name, apply_phone, urgency, apply_date, appointment_time, repair_content, apply_remark, dispatcher, dispatcher_id, dispatch_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, receiver_remark, repair_image, repair_type_name1, repair_type_code1, repair_type_id1, repair_type_name2, repair_type_code2, repair_type_id2, finish_time, work_time, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, record_remark, evaluate_result, evaluate_date, evaluator, evaluate_content, evaluate_remark, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{repair_det_id, repair_id, material_name, unit, num, price, total}}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pd_device_repair",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
const baseData_getPdDeviceRepair = (repair_id) => {
	return new Promise((resolve) => {
		let result = "repair_id, apply_no, repair_type_name, repair_type_code, repair_type_id, device_id, device_code, device_no, device_name, device_type, device_size, type_id, address, apply_image, apply_user_id, apply_user, apply_company_id, apply_company_code, apply_company_name, apply_phone, urgency, apply_date, appointment_time, repair_content, apply_remark, dispatcher, dispatcher_id, dispatch_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, receiver_remark, repair_image, repair_type_name1, repair_type_code1, repair_type_id1, repair_type_name2, repair_type_code2, repair_type_id2, finish_time, work_time, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, record_remark, evaluate_result, evaluate_date, evaluator, evaluate_content, evaluate_remark, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{repair_det_id, repair_id, material_name, unit, num, price, total}"
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPdDeviceRepair",
			params: {
				repair_id: repair_id
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}

const baseData_getPdDeviceRepairWorkerList = () => {
	return new Promise((resolve) => {
		let result = "user_id, user_name"
		let query = util.formatGraphqlQuery([{
			fun: "workerList:baseData_getPdDeviceRepairWorkerList",
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res.workerList)
		})
	})
}
// 设备卡片信息
const baseData_queryPdDeviceCardForPdDeviceRepair = (params = {}) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "device_id, device_code, device_name, device_type, device_size, type_name, dept_name"
		let query = util.formatGraphqlQuery([{
			fun: "deviceInfo: baseData_queryPdDeviceCardForPdDeviceRepair",
			params: params,
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
//日常工作列表查询
const baseData_getMyTask_kword_deal = (params = {}) => {
	return baseData_getMyTask_kword(params, 'DEAL', 'taskDealList')
}

const baseData_getMyTask_kword_complete = (params = {}) => {
	return baseData_getMyTask_kword(params, 'COMPLETE', 'taskCompleteList')
}

const baseData_getMyTask_kword = (params = {}, status, listName) => {
	return new Promise((resolve) => {
		params = {
			start: 0,
			limit: 20,
			...params
		}
		let result = "id, apply_no, apply_date, rightsKey, pm_kword{kword_id, apply_no, start_time, end_time, kw_type, urgency, is_record, kw_content, record_remark, record_user_name, record_user_id, record_dept_id, record_dept_code, record_dept_name, record_time, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, image, status}"
		let query = util.formatGraphqlQuery([{
			fun: listName + ":baseData_getMyTask",
			params: {
				taskStatus: status + "_nostr",
				rightsKey: "pm_kword",
				...params
			},
			result: result
		}])
		util.postGraphql({ query }, {
			isLoading: false
		}).then((res) => {
			resolve(res)
		})
	})
}
// 设备保养任务信息
const baseData_getPmKword = (kword_id) => {
	return new Promise((resolve)=>{
		let result = "kword_id, apply_no, start_time, end_time, kw_type, urgency, is_record, kw_content, record_remark, record_user_name, record_user_id, record_dept_id, record_dept_code, record_dept_name, record_time, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, image, status"
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPmKword",
			params:{
				kword_id: kword_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
//
const baseData_getBaseRepairType = () => {
	return new Promise((resolve)=>{
		let result = "type_id, type_level, type_name, type_supe_code"
		let query = util.formatGraphqlQuery([{
			fun: "baseRepairTypeList:baseData_getBaseRepairType",
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res.baseRepairTypeList)
		})
	})
}
//开票详情
const tickets_apply_detail = (pi_invoic_id) => {
	return new Promise((resolve)=>{
		let result = "pi_invoic_id,apply_no,apply_payer_name,apply_payer_id,apply_payer_no,apply_address,apply_bank_account,apply_phone,apply_invoic_type,apply_total,apply_total_str,apply_pic,apply_email,apply_isemail,apply_email,receiver_results,apply_remark,apply_user_name,apply_user_id,apply_dept_name,apply_dept_id,apply_bank_name,apply_date,cancel_date,customer_name,company_type,cancel_content,end_date,receiver_content,invoic_info,invoice_name,invoic_text,mobile,project_type,register_user_name,register_user_id,register_dept_name,register_dept_id,register_remark,register_date,receiver_user_name,receiver_user_id,receiver_dept_name,receiver_dept_id,receiver_date,invoic_status,start_date,dets{pi_invoic_det_id,pi_invoic_id,project_no,project_type,project_name,project_num,project_price,project_money}"
		let query = util.formatGraphqlQuery([{
			fun: 'piInvoicData_getPiInvoic',
			params: {
				pi_invoic_id: pi_invoic_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
//车辆信息详情
const get_campusVehicleData_getCampusVehicleDetail = (vehicle_id) => {
	return new Promise((resolve)=>{
		let result = "vehicle_id,visit_people_id,user_id,company_id,people_name,company_name,black_list,vehicle_model,vehicle_number,is_visit_vehicle,insure_start_date,insure_bug_date,insure_end_date,insure_money,dept_id,reserve_status,insurance_status,vehicle_name,dept_name,maintenance_status,vehicle_no,insurance_det_status,assets_dept_name,assets_dept_id,remark,vehicle_records{vehicle_record_id,vehicle_id,start_time,end_time,reserve_no,dept_name,dept_id,num,user_nature,dirver,dirver_id,customer_name,customer_id,customer_phone,start_address,end_address,}oilcard_records{oilcard_record_id,vehicle_id,recharg_no,oilcard_no,recharg_money,vehicle_model,vehicle_number,handle_user_id,handle_user_name,handle_dept_name,handle_dept_id,recharg_time}"
		let query = util.formatGraphqlQuery([{
			fun: "campusVehicleData_getCampusVehicle",
			params:{
				vehicle_id:vehicle_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
//车辆预约信息详情
const get_poCarReserve_getCarReserveDetail = (car_reserve_id) => {
	return new Promise((resolve)=>{
		let result = "car_reserve_id,apply_no,apply_car_name,apply_car_id,apply_car_dept,apply_car_dept_id,apply_phone,apply_num,apply_car_type,apply_start_time,apply_end_time,apply_isdriver,apply_start_address,apply_end_address,reserve_status,apply_car_content,apply_remark,apply_user_name,apply_user_id,apply_dept_name,apply_dept_id,apply_date,receiver_results,receiver_content,receiver_dirver,receiver_remark,receiver_user_name,receiver_user_id,receiver_dept_name,receiver_dept_id,receiver_date,requisi_time,requisi_content,requisi_remark,requisi_user_name,requisi_user_id,requisi_dept_name,requisi_dept_id,requisi_date,return_time,return_isovertime,return_situation,abnorm_content,return_remark,return_user_name,return_user_id,return_dept_name,return_dept_id,return_date,pay_user_name,pay_user_id,repair_money,repair_user_name,repair_user_id,repair_content,repair_remark,record_user_name,record_user_id,record_dept_name,record_dept_id,record_date,reserve_appid,receiver_dirver_id,vehicle_no,vehicle_name,vehicle_number,vehicle_model,vehicle_id"
		let query = util.formatGraphqlQuery([{
			fun: "poCarReserve_getCarReserve",
			params:{
				car_reserve_id:car_reserve_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
//预约看房申请单
const baseData_getPiLookingRoom = (look_id) => {
	return new Promise((resolve)=>{
		let result = "look_id, accept_time, apply_no, apply_user, apply_user_name, apply_date, apply_lease_purpose ,company_name, contact_phone, start_time, lease_purpose, property_remark, accepted_date, accept_result, accept_starttime, accepted_user_id, accepted_user_name, accepted_date, accept_result, accept_starttime, accept_remark,register_user_id, register_user, register_date, check_businessdate, is_intention, property_dec, need_repair, purpose,company_claim, intent_area, intent_price, intent_parking, intent_environment, register_remark,visit_user_id, visit_user, visit_date, is_satisfy, visit_price, visit_area, visit_parking, visit_company_price,visit_record, visit_remark, company_look_num, jd_status,pi_looking_property_dets{property_detid, company_look_num, property_id, property_code, building, storey, floor_area, pricing_amount, property_image, tag_name }"
		let query = util.formatGraphqlQuery([{
			fun: "piLookingRoom: baseData_getPiLookingRoom",
			params:{
				look_id: look_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
const assets_getAssetsType = () => {
	return new Promise((resolve)=>{
		let query = util.formatGraphqlQuery([{
			fun: "propertyTypeList: baseData_getAssetsPropertyType",
			result: "property_type_id, property_type_name"
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
/**
 * 物业信息查询
 */
const baseData_getAssetsPropertyForRentable = (params = {}) => {
	return new Promise((resolve)=>{
		let result = "property_id, property_code, publisher, publish_date, property_image, building, storey, floor_area, real_area, pricing_amount, property_use, tag_name ,room_price ,sharing_area"
		params = {
			start: 0,
			limit: 20,
			...params
		}
		console.warn("params: ", params)
		let query = util.formatGraphqlQuery([{
			fun: "assetsList:baseData_getAssetsPropertyForRentable",
			params: params,
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res.assetsList)
		})
	})
}
const baseData_getPmSinspection = (spection_id) => {
	return new Promise((resolve)=>{
		let result = "spection_id, plan_no, plan_name, sinspection_content, inspect_user_name,   inspect_user_id, inspect_dept_id, inspect_dept_code, inspect_dept_name, inspect_date, plan_remark, plan_user_name, plan_user_id, plan_dept_id, plan_dept_code, plan_dept_name, plan_date, record_content, record_image, record_remark, record_user_name, record_user_id, record_dept_id, record_dept_code, record_dept_name, record_date, solution_content, solution_image, solution_remark, solution_user_name, solution_user_id, solution_dept_id, solution_dept_code, solution_dept_name, solution_date, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{sinspection_det_id, spection_id, property_id, property_code, property_building, property_storey, property_room, property_type_id, property_type_code, property_type_name, check_content, is_abnormal, abnormal_desc, solution_type_value, solution_type_text, solution_desc}"
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPmSinspection",
			params:{
				spection_id: spection_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
// 设备保养任务信息
const baseData_getPdMaintainTask = (maintain_id) => {
	return new Promise((resolve)=>{
		let result = "maintain_id, maintain_no, plan_start_date, plan_partorls_time, plan_end_date, target_id, standard_id, standard_code, standard_name, device_id, device_code, device_no, device_name, maintenance_dept_id, maintenance_dept_name, is_emphasis, dispatcher, dispatcher_id, dispatch_time,visit_time, followman, followman_id, receiver, receiver_id, receive_time, receive_dept_name, is_timeout, finish_time, maintain_image, maintain_remark, record_user_id, record_user_name, record_dept_id, record_dept_code, record_dept_name, record_date, confirm_result, confirm_proposal, confirm_remark, confirm_user_name, confirm_user_id, confirm_dept_id, confirm_dept_name, check_user_id, check_user_name, check_dept_id, check_dept_code, check_dept_name, check_date, check_result, check_remark, status, dets{  maintain_det_id, maintain_id, partorls_no, partorls_content, is_comply}"
		let query = util.formatGraphqlQuery([{
			fun: "task: baseData_getPdMaintainTask",
			params:{
				maintain_id: maintain_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res)
		})
	})
}
// 设备保养人员列表查询
const baseData_getPdMaintainTaskWorkerList = (maintenance_dept_id) => {
	return new Promise((resolve)=>{
		let result = "user_id, user_name"
		let query = util.formatGraphqlQuery([{
			fun: "workerList:baseData_getPdMaintainTaskWorkerList",
			params:{
				maintenance_dept_id: maintenance_dept_id
			},
			result: result
		}])
		util.postGraphql({query}, {
			isLoading: false
		}).then((res)=>{
			resolve(res.workerList)
		})
	})
}
module.exports = {
	ibmsBaseUrl,//基础接口地址
	tenementApi,//物业系统接口
	getPictureSwiper,//获取轮播图列表
	piHangNetData_list,//挂牌列表
	prevention_park_detail,//防疫详情
	prevention_park_list,//防疫入园进度查询
	piLookingRoom_getPiLookingRoomList,	// 预约看房列表查询
	piLookingRoom_getPiLookingRoomSingle, // 预约看房单个查询
	mySelf_getMyCompany,	// 公司信息查询
	pmServiceRepair_getPmServiceRepairList, // 报修列表查询
	pmServiceRepair_getPmServiceRepairSingle, // 报事报修详情
	pmServiceRepair_getMyAssetsProperty,	// 物业列表查询
	baseData_getToolDataList,	//字典查询
	pmFeedback_getPmFeedbackList, // 反馈列表查询
	assets_getAssetsProperty, // 物业信息查询
	assets_getAssetsPropertyType, // 物业分类查询
	piPayNotice_getPiPayNoticeList, // 缴费通知列表查询
	piPayNotice_getPiPayNoticeSingle, 	// 缴费通知单个查询
	mySelf_getMyContractList, // 我的合同列表查询
	assets_getFilter, // 物业信息过滤条件查询
	mySelf_getCustomerStaff, // 查询企业员工信息

	get_delistData_getDelistList,//物业摘牌信息列表
	get_delistData_getDelistDetail,//物业摘牌信息详情

	mySelf_psPaidService_getPsPaidList,//有偿服务列表
	mySelf_psPaidContent_getPaidContentList,//有偿服务内容列表
	mySelf_psPaidService_getPsPaid,//有偿服务详情
	mySelf_psPaidContent_getPaidContent,//有偿服务内容详情

	baseData_getMyTask_patrol_accept,//物业巡检列表查询
	baseData_getMyTask_patrol_deal,//物业巡检列表查询
	baseData_getMyTask_patrol_complete,//物业巡检列表查询
	baseData_getPmPatrolTask,
	baseData_getPmPatrolTaskWorkerList,//物管人员列表查询

	baseData_getMyTask_repair_accept,//报修列表查询
	baseData_getMyTask_repair_deal,//报修列表查询
	baseData_getMyTask_repair_complete,//报修列表查询
	baseData_getPmServiceRepair,
	baseData_getRepairWorkerList,// 维修人员列表查询

	baseData_getMyTask_inspecel_accept,//设备巡检列表查询
	baseData_getMyTask_inspecel_deal,//设备巡检列表查询
	baseData_getMyTask_inspecel_complete,//设备巡检列表查询

	baseData_getMyTask_maintain_accept,//设备保养列表查询
	baseData_getMyTask_maintain_deal,//设备保养列表查询
	baseData_getMyTask_maintain_complete,//设备保养列表查询
	baseData_getMyDeviceMaintainlScaling,// 保养设备清单
	baseData_getPdMaintainTask,// 设备保养任务信息
	baseData_getPdMaintainTaskWorkerList,// 设备保养人员列表查询

	baseData_getPmFeedback,//意见箱

	baseData_getMyTask_sinspection_deal,//专项检查列表查询
	baseData_getMyTask_sinspection_complete,//专项检查列表查询
	baseData_getMyTask_sinspection,//专项检查列表查询
	baseData_getPmSinspection,

	baseData_getMyTask_device_repair_accept,//设备微信列表查询
	baseData_getMyTask_device_repair_deal,//设备微信列表查询
	baseData_getMyTask_device_repair_complete,//设备微信列表查询
	baseData_getPdDeviceRepair,
	baseData_getPdDeviceRepairWorkerList,
	baseData_queryPdDeviceCardForPdDeviceRepair,// 设备卡片信息

	baseData_getMyTask_kword_deal,//日常工作列表查询
	baseData_getMyTask_kword_complete,//日常工作列表查询

	baseData_getPmKword,//设备保养任务信息
	baseData_getBaseRepairType,

	get_taskAccepteList,//物业巡检

	get_invoic_apply_list,//开票列表
	tickets_apply_detail,// 开票详情

	get_campusVehicleData_getCampusVehicleList,//车辆信息列表
	get_campusVehicleData_getCampusVehicleDetail,//车辆信息详情
	get_poCarReserve_getCarReserveDetail,//车辆预约信息详情

	baseData_getPiLookingRoom,//预约看房申请单
	assets_getAssetsType,//物业列表
	baseData_getAssetsPropertyForRentable,//物业信息查询

	get_poCarReserve_getCarReserveList,//车辆预约信息列表
	baseData_getMyTask_accept,//工单信息-待办
	baseData_getMyTask_deal,//工单信息-待处理
	baseData_getMyTask_complete,//工单信息-已完成
	baseData_getMyPiCustomerFile,//我的客户
	baseData_getPdDeviceSite,//区域选择
	baseData_getPdDeviceCardInfoBySiteId,//设备控制列表

	baseData_getPdInspecelTask,//设备巡查任务信息
	baseData_getPdInspecelTaskWorkerList,//设备巡查人员列表查询
};
